package com.ddf.exception;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.log4j.Logger;

public class DataException extends Exception {
	public final static String ERR_NO_TABLE = "没有找到表";
	protected final static Logger logger = Logger.getLogger(DataException.class);
	private static Log exceptionLog = LogFactory.getLog("exceptionLog");//运行日志
	public DataException (){
		//TODO 加上处理
		super();
	}
	public DataException (String message) {
		super(message);
		exceptionLog.info(message);
		exceptionLog.error(this);
        
    }
	
	public DataException (String message,String dealType) {
		
		//TODO 加上是否需要自动处理的逻辑处理
        super(message);
    }
}
